feat: auth0 server import restructure - #2828
Conversation
…st into src/server
…itical RCE vulnerabilities
Co-authored-by: nandan-bhat <167290944+nandan-bhat@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Piyush Kumar <piykumar85@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Piyush Kumar <piykumar85@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Piyush Kumar <piykumar85@gmail.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…2822) Co-authored-by: Piyush Kumar <piyush.kumar@okta.com> Co-authored-by: Piyush Kumar <piykumar85@gmail.com>
# Conflicts: # src/server/auth-client/auth-client.ts # src/server/mfa/mfa-popup.test.ts # src/server/passwordless/passwordless-server.flow.test.ts # src/server/session/stateless-session-store.ts # src/server/tests/auth-client.test.ts # src/server/tests/transaction-store.test.ts
|
Semgrep found 1 Risk: Affected versions of js-yaml are vulnerable to Inefficient Algorithmic Complexity. An attacker can supply a YAML document containing a large Manual Review Advice: A vulnerability from this advisory is reachable if you are using Fix: Upgrade this library to at least version 4.3.1 at nextjs-auth0/examples/with-shadcn/pnpm-lock.yaml:1722. Reference(s): GHSA-5p4m-2wfm-xmqj Semgrep found 1 Risk: Affected versions of js-yaml are vulnerable to Inefficient Algorithmic Complexity / Uncontrolled Resource Consumption. An attacker can supply a YAML document containing a chain of mappings that each merge the previous one via the merge key ( Manual Review Advice: A vulnerability from this advisory is reachable if you are using Fix: Upgrade this library to at least version 4.3.0 at nextjs-auth0/examples/with-shadcn/pnpm-lock.yaml:1722. Reference(s): https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-42301, GHSA-52cp-r559-cp3m, CVE-2026-59869 |
Pure file restructure of
src/server/with no logic changes, in preparation for the@auth0/auth0-server-jsmigration. Code is relocated verbatim into per-domain folders; the only edits are import-path updates and extracting inline types into dedicatedtypes.tsfiles that are re-exported so all existing import paths remain valid. Public API is unchanged.Changes
auth-client.tsinto its own folder; extracted module-level constants, helpers, error utilities, and inline types into separate files with the class kept whole.cookies.tsintochunks.ts(cookie plumbing) andencryption.ts(crypto, the future swap target).fetcher/folder.dpop/folder.session/folder; extracted inline types from the session store files.helpers/handler files into a sharedtypes.ts.mfa/folder.next-compat.tsand its test into a newhttp/folder.passkey/,passwordless/,my-account/,connected-accounts/).src/server/tests/.src/test/tosrc/test-fixtures/.Testing
npm run buildpassesnpm run lintpassesChecklist